package com.ruoyi.stock.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock.mapper.QwStockweekinfoMapper;
import com.ruoyi.stock.domain.QwStockweekinfo;
import com.ruoyi.stock.service.IQwStockweekinfoService;

/**
 * 股票周信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-16
 */
@Service
public class QwStockweekinfoServiceImpl implements IQwStockweekinfoService 
{
    @Autowired
    private QwStockweekinfoMapper qwStockweekinfoMapper;

    /**
     * 查询股票周信息
     * 
     * @param weekInfoId 股票周信息主键
     * @return 股票周信息
     */
    @Override
    public QwStockweekinfo selectQwStockweekinfoByWeekInfoId(Long weekInfoId)
    {
        return qwStockweekinfoMapper.selectQwStockweekinfoByWeekInfoId(weekInfoId);
    }

    /**
     * 查询股票周信息列表
     * 
     * @param qwStockweekinfo 股票周信息
     * @return 股票周信息
     */
    @Override
    public List<QwStockweekinfo> selectQwStockweekinfoList(QwStockweekinfo qwStockweekinfo)
    {
        return qwStockweekinfoMapper.selectQwStockweekinfoList(qwStockweekinfo);
    }

    /**
     * 新增股票周信息
     * 
     * @param qwStockweekinfo 股票周信息
     * @return 结果
     */
    @Override
    public int insertQwStockweekinfo(QwStockweekinfo qwStockweekinfo)
    {
        return qwStockweekinfoMapper.insertQwStockweekinfo(qwStockweekinfo);
    }

    /**
     * 修改股票周信息
     * 
     * @param qwStockweekinfo 股票周信息
     * @return 结果
     */
    @Override
    public int updateQwStockweekinfo(QwStockweekinfo qwStockweekinfo)
    {
        return qwStockweekinfoMapper.updateQwStockweekinfo(qwStockweekinfo);
    }

    /**
     * 批量删除股票周信息
     * 
     * @param weekInfoIds 需要删除的股票周信息主键
     * @return 结果
     */
    @Override
    public int deleteQwStockweekinfoByWeekInfoIds(Long[] weekInfoIds)
    {
        return qwStockweekinfoMapper.deleteQwStockweekinfoByWeekInfoIds(weekInfoIds);
    }

    /**
     * 删除股票周信息信息
     * 
     * @param weekInfoId 股票周信息主键
     * @return 结果
     */
    @Override
    public int deleteQwStockweekinfoByWeekInfoId(Long weekInfoId)
    {
        return qwStockweekinfoMapper.deleteQwStockweekinfoByWeekInfoId(weekInfoId);
    }
}
